home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / MacPerl Source ƒ / Perl5 / ext / Fcntl / Makefile < prev    next >
Encoding:
Makefile  |  1995-08-23  |  5.2 KB  |  194 lines  |  [TEXT/MPS ]

  1. # This Makefile is for the DynaLoader extension to perl.
  2. #
  3.  
  4. # --- MakeMaker post_initialize section:
  5.  
  6.  
  7. # --- MakeMaker constants section:
  8.  
  9. NAME = Fcntl
  10.  
  11. # Perl library to use when building the extension
  12. PERL_LIB = :::lib:
  13.  
  14. # Where is the perl source code located? (Eventually we should
  15. # be able to build extensions without requiring the perl source
  16. # but that's a way off yet).
  17. PERL_SRC = :::
  18. # Perl header files (will eventually be under PERL_LIB)
  19. PERL_INC = :::
  20. # Perl binaries
  21. PERL = :::miniperl
  22.  
  23. # FULLEXT = Pathname for extension directory (eg DBD/Oracle).
  24. # BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT.
  25. # ROOTEXT = Directory part of FULLEXT with leading slash (eg /DBD)
  26. FULLEXT = Fcntl
  27. BASEEXT = Fcntl
  28. ROOTEXT = 
  29.  
  30. # Source code:
  31. XS= Fcntl.xs
  32. C = Fcntl.c
  33. H = 
  34.  
  35. PPCEXT = .c.o.PPC
  36. PPCOBJ = Fcntl{PPCEXT}
  37. M68KEXT = .c.o.68K
  38. M68KOBJ = Fcntl{M68KEXT}
  39.  
  40. # This extension may link to it's own library (see SDBM_File)
  41. PPC_Sys_Libraries = ":::PerlCore.PPC"
  42.  
  43. # Where is the Config.pm that we are using/depend on
  44. CONFIGDEP = {PERL_ARCHLIB}Config.pm
  45.  
  46. # Where to put things:
  47. INST_LIBDIR     = {PERL_LIB}{ROOTEXT}
  48. INST_AUTODIR     = {PERL_LIB}auto:{FULLEXT}:
  49.  
  50. INST_BOOT    = {INST_AUTODIR}{BASEEXT}.bs
  51. INST_DYNAMIC = {INST_AUTODIR}{BASEEXT}
  52. INST_STATIC  = {BASEEXT}.o
  53. INST_PM          = {INST_LIBDIR}Fcntl.pm
  54.  
  55.  
  56. # These definitions are from config.mac (via :::lib:Config.pm)
  57. PerlOption    = -sym on -d MULTIPLICITY -d DEBUGGING
  58. COptions     = -mc68020 -model far
  59. PPCCOptions = -d macintosh -d __useAppleExts__
  60. ROptions     = -i :
  61. CC68K         = MWC68K {PerlOption}
  62. CCPPC         = MWCPPC {PerlOption}
  63.  
  64. # Usage: {AUTOSPLITFILE} FileToSplit AutoDirToSplitInto
  65. AUTOSPLITFILE = {PERL} -I{PERL_LIB} -e 'use AutoSplit; AutoSplit::autosplit_file(${ARGV}[0], ${ARGV}[1], 0, 1, 1) ;'
  66.  
  67.  
  68. # --- MakeMaker tool_xsubpp section:
  69.  
  70. XSUBPP = {PERL_SRC}ext:xsubpp
  71. XSUBPPDEPS = {PERL_SRC}ext:typemap typemap
  72. XSUBPPARGS = -typemap {PERL_SRC}ext:typemap
  73.  
  74.  
  75. # --- MakeMaker tools_other section:
  76.  
  77. # The following is a portable way to say mkdir -p
  78. MKPATH = {PERL} -wle '$"="/"; foreach $p (@ARGV){ my(@p); foreach(split(/:/,$p)){ push(@p,${_}); next if -d "@p"; print "mkdir @p"; mkdir("@p",0777)||die $! }} exit 0;'
  79.  
  80.  
  81. # --- MakeMaker c_o section:
  82.  
  83. .c.o.68Kƒ    .c
  84.     {CC68K} {COptions} -i {PERL_INC} {INC} {Default}.c -o {Default}.c.o.68K
  85. .c.o.PPCƒ    .c
  86.     {CCPPC} {PPCCOptions} -i {PERL_INC} {INC} {Default}.c -o {Default}.c.o.PPC
  87.  
  88.  
  89. # --- MakeMaker xs_c section:
  90.  
  91. .c ƒ .xs
  92.     {PERL} {XSUBPP} {XSUBPPARGS} {Default}.xs >{Default}.c
  93.  
  94.  
  95. # --- MakeMaker top_targets section:
  96.  
  97. all ƒ static {INST_PM}
  98.  
  99. install ƒ all
  100.  
  101. # --- MakeMaker static section:
  102.  
  103. # {INST_PM} has been moved to the all: target.
  104. # It remains here for awhile to allow for old usage: "make static"
  105. static ƒ {INST_STATIC}.PPC {INST_STATIC}.68K {INST_PM} 
  106.  
  107. {INST_STATIC}.PPCƒ {PPCOBJ}
  108.     MWLinkPPC -sym on -o {INST_STATIC}.PPC -xm library {PPCOBJ}
  109. {INST_STATIC}.68Kƒ {M68KOBJ}
  110.     MWLink68K -sym on -o {INST_STATIC}.68K -xm library {M68KOBJ}
  111.     
  112. # --- MakeMaker dynamic section:
  113.  
  114. # {INST_PM} has been moved to the all: target.
  115. # It remains here for awhile to allow for old usage: "make dynamic"
  116. dynamic ƒ {BASEEXT} {INST_PM} 
  117.     Duplicate -y {BASEEXT} {INST_DYNAMIC}
  118.     
  119. {BASEEXT} ƒ {PPCOBJ}
  120.     MWLinkPPC -t shlb -c cfrg -main boot_Fcntl -export all -o {BASEEXT} -xm sharedLibrary {PPCOBJ} {PPC_Sys_Libraries}
  121.  
  122. # --- MakeMaker installpm section:
  123.  
  124. # installpm: Fcntl.pm => {INST_LIBDIR}Fcntl.pm, splitlib={INST_LIBDIR}
  125.  
  126. {INST_LIBDIR}Fcntl.pmƒ Fcntl.pm
  127.     Delete -i -y {INST_LIBDIR}Fcntl.pm
  128.     Duplicate Fcntl.pm {INST_LIBDIR}Fcntl.pm
  129.     {AUTOSPLITFILE} {INST_LIBDIR}Fcntl.pm {INST_LIBDIR}auto
  130.  
  131.  
  132. clean ƒ
  133. #    rm -f *~ t/*~ *.o *.a mon.out core so_locations {BOOTSTRAP} {BASEEXT}.bso
  134. #    rm -rf dl_next.c dl_none.c dl_mac.c dl_aix.c dl_dlopen.c dl_dld.c dl_hpux.c dl_vms.c Fcntl.c
  135.  
  136.  
  137. # --- MakeMaker realclean section:
  138.  
  139. # Delete temporary files (via clean) and also delete installed files
  140. #realclean purge ::  clean
  141. #    rm -f Makefile {INST_DYNAMIC} {INST_STATIC} {INST_BOOT} {INST_PM}
  142. #    rm -rf {INST_AUTODIR} {INST_ARCHAUTODIR}
  143.  
  144.  
  145. # --- MakeMaker distclean section:
  146.  
  147. # distclean:     clean
  148. #     @:
  149. #     rm -f ./Makefile
  150. # #     cd ..; tar cvf {DISTNAME}-{VERSION}.tar {BASEEXT}
  151. #    cd ..; compress {DISTNAME}-{VERSION}.tar
  152. #     @:
  153.  
  154.  
  155. # --- MakeMaker test section:
  156.  
  157. # test :: all
  158. #     @echo 'No tests defined for {NAME} extension.'
  159.  
  160.  
  161. # --- MakeMaker install section:
  162.  
  163. # install :: all
  164.     # install is not defined. Makefile, by default, builds the extension
  165.     # directly into {INST_LIB} so "installing" does not make much sense.
  166.     # If INST_LIB is in the perl source tree then installperl will install
  167.     # the extension when it installs perl.
  168.  
  169.  
  170. # --- MakeMaker force section:
  171. # Phony target to force checking subdirectories.
  172. # FORCE:
  173.  
  174.  
  175. # --- MakeMaker perldepend section:
  176.  
  177. PERL_HDRS = {PERL_INC}EXTERN.h {PERL_INC}INTERN.h ∂
  178.     {PERL_INC}XSUB.h    {PERL_INC}av.h    {PERL_INC}cop.h ∂
  179.     {PERL_INC}cv.h    {PERL_INC}dosish.h    {PERL_INC}embed.h ∂
  180.     {PERL_INC}form.h    {PERL_INC}gv.h    {PERL_INC}handy.h ∂
  181.     {PERL_INC}hv.h    {PERL_INC}keywords.h    {PERL_INC}mg.h ∂
  182.     {PERL_INC}op.h    {PERL_INC}opcode.h    {PERL_INC}patchlevel.h ∂
  183.     {PERL_INC}perl.h    {PERL_INC}perly.h    {PERL_INC}pp.h ∂
  184.     {PERL_INC}proto.h    {PERL_INC}regcomp.h    {PERL_INC}regexp.h ∂
  185.     {PERL_INC}scope.h    {PERL_INC}sv.h    {PERL_INC}unixish.h ∂
  186.     {PERL_INC}util.h
  187.  
  188. # {OBJECT} ƒ {PERL_HDRS}
  189.  
  190. # --- MakeMaker postamble section:
  191.  
  192.  
  193. # End.
  194.